const agent = require('./assets/js/agent')
module.exports = {
  /*
  ** Headers of the page
  */
  head: {
    title: 'otcbank用户系统',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: '多页用户pptrade user system' },
      {name:'renderer',content:'webkit'}//支持360浏览器
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: 'https://pcoin.oss-cn-beijing.aliyuncs.com/favicon.ico?v=2' }
    ]
  },
  /*
  ** Customize the progress bar color
  */
  loading: { color: '#de211d' },
  /*
  ** Build configuration
  */
  build: {
    /*
    ** Run ESLint on save
    */
    extend (config, { isDev, isClient }) {
      // if (isDev && isClient) {
      //   config.module.rules.push({
      //     enforce: 'pre',
      //     test: /\.(js|vue)$/,
      //     loader: 'eslint-loader',
      //     exclude: /(node_modules)/
      //   })
      // }
    },
    vendor: ['element-ui'],
  },
  css: [
    'assets/css/main.css',
    'animate.css',
    'font-awesome/css/font-awesome.css',
    {src:'element-ui/lib/theme-chalk/index.css'},
  ],
  plugins: [
    {src:'~plugins/element-ui', ssr: true},
    {src:'~plugins/address',ssr:false},
    {src:'~plugins/axios',ssr:false},
  ],
  modules: [
      '@nuxtjs/axios',
      '@nuxtjs/proxy',
  ],
  proxy: {
      ...agent
  }
}

